import axios from '../axios'

/* 
 * 菜单管理模块
 */

 // 添加
export const add = (data) => {
    return axios({
        url: '/resource/add',
        method: 'post',
        data
    })
}

// 修改
export const edit = (data) => {
  return axios({
    url: '/resource/edit',
    method: 'post',
    data
  })
}
// 删除
export const batchDelete = (data) => {
    return axios({
        url: '/resource/delete',
        method: 'post',
        data
    })
}
// 查找导航菜单树
export const findNavTree = () => {
    return axios({
        url: '/resource/findNavTree',
        method: 'get'

    })
}
// 查找权限
export const findMenuTree = (data) => {
    return axios({
        url: '/resource/findPage',
        method: 'post',
        data
    })
}
